import { ipcMain } from 'electron';
import type { BrowserWindow, IgnoreMouseEventsOptions, IpcMainEvent } from 'electron';

export function setIgnoreMouseEvents (win: BrowserWindow) {
  ipcMain.on('setIgnoreMouseEvents', (
    _event: IpcMainEvent,
    ignore: boolean,
    options?: IgnoreMouseEventsOptions,
  ) => {
    win.setIgnoreMouseEvents(ignore, options)
  })
}